﻿<%@ Page Language="C#" MasterPageFile="~/Theme/Stander/Stander.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Finance_Default" Title="财务部" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h2><asp:TextBox ID="txtYear" Width="3em" runat="server" OnTextChanged="txtYear_TextChanged" AutoPostBack="true"></asp:TextBox>
<asp:RequiredFieldValidator ControlToValidate="txtYear" SetFocusOnError="true" Display="Dynamic"
        ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>年报表</h2>
<asp:Repeater ID="rptYearReport" runat="server">
<HeaderTemplate>
<table class="normal">
    <tr>
        <th>月份</th>
        <th>交易次数</th>
        <th>应收</th>
        <th>实收</th>
        <th>应付</th>
        <th>实付</th>
        <th>应得利润</th>
        <th>实得利润</th>
    </tr>
</HeaderTemplate>
<ItemTemplate>
    <tr>
        <td><a href='<%# string.Format("~/Finance/MonthReport.aspx?year={0}&month={1}", txtYear.Text, Eval("Month")) %>' 
            runat="server" target="_blank"><%# Eval("Month", "{0}月") %></a></td>
        <td><%# Eval("BillsCount") %></td>
        <td><%# Formater.FormatMoney(Eval("Income")) %></td>
        <td><%# Formater.FormatMoney(Eval("RealIncome")) %></td>
        <td><%# Formater.FormatMoney(Eval("Payout")) %></td>
        <td><%# Formater.FormatMoney(Eval("RealPayout")) %></td>
        <td><%# Formater.FormatMoney((decimal)Eval("Income") - (decimal)Eval("Payout"))%></td>
        <td><%# Formater.FormatMoney((decimal)Eval("RealIncome") - (decimal)Eval("RealPayout"))%></td>
    </tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</asp:Content>

